package stream;

import java.util.stream.Stream;

public class StreamMatch {
    public static void main(String[] args) {
        boolean b = Stream.of(8, 7, 9, 3)
                //是否全部满足条件
//                .allMatch(e -> e > 0);
                //是否有一个满足条件
//        .anyMatch(e->e>8);
                //是否都不满足条件
        .noneMatch(e->e<0);
        System.out.println(b);
    }

}
